.class public Lcom/estrongs/android/pop/esclasses/l;
.super Landroid/content/res/Resources;
.source "ESResources.java"


# static fields
.field private static b:Lcom/estrongs/android/pop/esclasses/l;

.field public static c:Z


# instance fields
.field private a:Landroid/content/res/Resources;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method protected constructor <init>(Landroid/content/res/Resources;)V
    .locals 3

    .line 1
    invoke-virtual {p1}, Landroid/content/res/Resources;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v0

    invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v2

    invoke-direct {p0, v0, v1, v2}, Landroid/content/res/Resources;-><init>(Landroid/content/res/AssetManager;Landroid/util/DisplayMetrics;Landroid/content/res/Configuration;)V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/esclasses/l;->a:Landroid/content/res/Resources;

    .line 3
    invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 4
    iget v1, v0, Landroid/content/res/Configuration;->screenLayout:I

    and-int/lit8 v1, v1, 0xf

    const/4 v2, 0x4

    if-ne v1, v2, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    sput-boolean v1, Lcom/estrongs/android/pop/esclasses/l;->c:Z

    .line 5
    :cond_1
    invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Landroid/content/res/Resources;->updateConfiguration(Landroid/content/res/Configuration;Landroid/util/DisplayMetrics;)V

    .line 6
    new-instance v0, Lcom/estrongs/android/util/g0;

    invoke-direct {v0, p1}, Lcom/estrongs/android/util/g0;-><init>(Ljava/lang/Object;)V

    const-string p1, "getCompatibilityInfo"

    .line 7
    invoke-virtual {v0, p1}, Lcom/estrongs/android/util/g0;->b(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 8
    new-instance v0, Lcom/estrongs/android/util/g0;

    invoke-direct {v0, p0}, Lcom/estrongs/android/util/g0;-><init>(Ljava/lang/Object;)V

    const-string v1, "setCompatibilityInfo"

    .line 9
    invoke-virtual {v0, v1, p1}, Lcom/estrongs/android/util/g0;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_2
    return-void
.end method

.method public static a(Landroid/content/res/Resources;)Lcom/estrongs/android/pop/esclasses/l;
    .locals 1

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/esclasses/l;->b:Lcom/estrongs/android/pop/esclasses/l;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/pop/esclasses/l;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/esclasses/l;-><init>(Landroid/content/res/Resources;)V

    sput-object v0, Lcom/estrongs/android/pop/esclasses/l;->b:Lcom/estrongs/android/pop/esclasses/l;

    .line 3
    :cond_0
    sget-object p0, Lcom/estrongs/android/pop/esclasses/l;->b:Lcom/estrongs/android/pop/esclasses/l;

    return-object p0
.end method


# virtual methods
.method public a()Landroid/content/res/Resources;
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/l;->a:Landroid/content/res/Resources;

    return-object v0
.end method

.method public a(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/content/res/Resources$NotFoundException;
        }
    .end annotation

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v0

    const/16 v1, 0x15

    if-ge v0, v1, :cond_0

    .line 6
    invoke-super {p0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    return-object p1

    .line 7
    :cond_0
    invoke-super {p0, p1, p2}, Landroid/content/res/Resources;->getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    return-object p1
.end method

.method public a(ILandroid/util/TypedValue;)Ljava/io/InputStream;
    .locals 0

    .line 8
    invoke-super {p0, p1, p2}, Landroid/content/res/Resources;->openRawResource(ILandroid/util/TypedValue;)Ljava/io/InputStream;

    move-result-object p1

    return-object p1
.end method

.method public b()V
    .locals 9

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/l;->a:Landroid/content/res/Resources;

    if-eqz v0, :cond_5

    .line 2
    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x2

    const/4 v3, 0x1

    if-eqz v0, :cond_3

    .line 3
    :try_start_0
    sget-boolean v4, Lcom/estrongs/android/pop/esclasses/l;->c:Z

    if-eqz v4, :cond_3

    .line 4
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v4

    .line 5
    invoke-virtual {v4}, Lcom/estrongs/android/pop/l;->d1()Z

    move-result v4

    if-nez v4, :cond_1

    sget-boolean v4, Lcom/estrongs/android/pop/j;->M:Z

    if-eqz v4, :cond_0

    goto :goto_0

    :cond_0
    const/4 v4, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v4, 0x1

    :goto_1
    if-eqz v4, :cond_2

    .line 6
    iget v4, v0, Landroid/content/res/Configuration;->screenLayout:I

    and-int/lit8 v4, v4, -0x10

    iput v4, v0, Landroid/content/res/Configuration;->screenLayout:I

    or-int/lit8 v4, v4, 0x4

    .line 7
    iput v4, v0, Landroid/content/res/Configuration;->screenLayout:I

    goto :goto_2

    .line 8
    :cond_2
    iget v4, v0, Landroid/content/res/Configuration;->screenLayout:I

    and-int/lit8 v4, v4, -0x10

    iput v4, v0, Landroid/content/res/Configuration;->screenLayout:I

    or-int/2addr v4, v2

    .line 9
    iput v4, v0, Landroid/content/res/Configuration;->screenLayout:I

    goto :goto_2

    :catchall_0
    move-exception v4

    goto :goto_3

    :cond_3
    :goto_2
    if-eqz v0, :cond_4

    .line 10
    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/g;->a(Landroid/content/res/Configuration;)Z

    .line 11
    iget-object v4, p0, Lcom/estrongs/android/pop/esclasses/l;->a:Landroid/content/res/Resources;

    invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v4

    invoke-virtual {p0, v0, v4}, Landroid/content/res/Resources;->updateConfiguration(Landroid/content/res/Configuration;Landroid/util/DisplayMetrics;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_4

    .line 12
    :goto_3
    invoke-virtual {v4}, Ljava/lang/Throwable;->printStackTrace()V

    .line 13
    :cond_4
    :goto_4
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v4

    .line 14
    invoke-virtual {v4}, Lcom/estrongs/android/ui/theme/b;->o()Z

    move-result v5

    if-nez v5, :cond_5

    if-eqz v0, :cond_5

    .line 15
    :try_start_1
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;

    move-result-object v5

    const-string v6, "updateConfiguration"

    new-array v7, v2, [Ljava/lang/Class;

    const-class v8, Landroid/content/res/Configuration;

    aput-object v8, v7, v1

    const-class v8, Landroid/util/DisplayMetrics;

    aput-object v8, v7, v3

    invoke-virtual {v5, v6, v7}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v5

    .line 16
    invoke-virtual {v4}, Lcom/estrongs/android/ui/theme/b;->b()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    new-array v2, v2, [Ljava/lang/Object;

    aput-object v0, v2, v1

    iget-object v0, p0, Lcom/estrongs/android/pop/esclasses/l;->a:Landroid/content/res/Resources;

    .line 17
    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    aput-object v0, v2, v3

    .line 18
    invoke-virtual {v5, v4, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    goto :goto_5

    :catchall_1
    move-exception v0

    .line 19
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_5
    :goto_5
    return-void
.end method

.method public getDrawable(I)Landroid/graphics/drawable/Drawable;
    .locals 3

    ushr-int/lit8 v0, p1, 0x18

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-ne v0, v1, :cond_0

    .line 1
    :try_start_0
    invoke-virtual {p0, p1, v2}, Lcom/estrongs/android/pop/esclasses/l;->a(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    return-object p1

    .line 2
    :cond_0
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/OutOfMemoryError; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    move-exception p1

    .line 3
    invoke-virtual {p1}, Ljava/lang/OutOfMemoryError;->printStackTrace()V

    return-object v2

    :catch_1
    move-exception p1

    .line 4
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object v2
.end method

.method public getDrawable(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
    .locals 3

    ushr-int/lit8 v0, p1, 0x18

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-ne v0, v1, :cond_0

    .line 5
    :try_start_0
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/android/pop/esclasses/l;->a(ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    return-object p1

    .line 6
    :cond_0
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/OutOfMemoryError; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    move-exception p1

    .line 7
    invoke-virtual {p1}, Ljava/lang/OutOfMemoryError;->printStackTrace()V

    return-object v2

    :catch_1
    move-exception p1

    .line 8
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object v2
.end method

.method public varargs getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3}, Landroid/content/res/Resources;->getQuantityString(II[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    .line 2
    sget-boolean p3, Lcom/estrongs/android/pop/j;->J:Z

    if-eqz p3, :cond_0

    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/g;->a(I)Z

    move-result p1

    if-eqz p1, :cond_0

    const-string p1, "WLAN"

    const-string p3, "Wifi"

    .line 3
    invoke-virtual {p2, p1, p3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    :cond_0
    return-object p2
.end method

.method public getString(I)Ljava/lang/String;
    .locals 2

    .line 1
    invoke-super {p0, p1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 2
    sget-boolean v1, Lcom/estrongs/android/pop/j;->J:Z

    if-eqz v1, :cond_0

    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/g;->a(I)Z

    move-result p1

    if-eqz p1, :cond_0

    const-string p1, "WLAN"

    const-string v1, "Wifi"

    .line 3
    invoke-virtual {v0, p1, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :cond_0
    return-object v0
.end method

.method public varargs getString(I[Ljava/lang/Object;)Ljava/lang/String;
    .locals 1

    .line 4
    invoke-super {p0, p1, p2}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    .line 5
    sget-boolean v0, Lcom/estrongs/android/pop/j;->J:Z

    if-eqz v0, :cond_0

    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/g;->a(I)Z

    move-result p1

    if-eqz p1, :cond_0

    const-string p1, "WLAN"

    const-string v0, "Wifi"

    .line 6
    invoke-virtual {p2, p1, v0}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    :cond_0
    return-object p2
.end method

.method public getStringArray(I)[Ljava/lang/String;
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getText(I)Ljava/lang/CharSequence;
    .locals 2

    .line 1
    :try_start_0
    invoke-super {p0, p1}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    .line 2
    sget-boolean v1, Lcom/estrongs/android/pop/j;->J:Z

    if-eqz v1, :cond_0

    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/g;->a(I)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 3
    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "WLAN"

    const-string v1, "Wifi"

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const-string v0, ""

    :cond_0
    :goto_0
    return-object v0
.end method

.method public getText(ILjava/lang/CharSequence;)Ljava/lang/CharSequence;
    .locals 1

    .line 4
    invoke-super {p0, p1, p2}, Landroid/content/res/Resources;->getText(ILjava/lang/CharSequence;)Ljava/lang/CharSequence;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    if-eqz p2, :cond_0

    .line 5
    sget-boolean v0, Lcom/estrongs/android/pop/j;->J:Z

    if-eqz v0, :cond_0

    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/g;->a(I)Z

    move-result p1

    if-eqz p1, :cond_0

    const-string p1, "WLAN"

    const-string v0, "Wifi"

    .line 6
    invoke-virtual {p2, p1, v0}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    :cond_0
    return-object p2
.end method

.method public getTextArray(I)[Ljava/lang/CharSequence;
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/content/res/Resources;->getTextArray(I)[Ljava/lang/CharSequence;

    move-result-object p1

    return-object p1
.end method

.method public getValue(ILandroid/util/TypedValue;Z)V
    .locals 0

    .line 2
    invoke-super {p0, p1, p2, p3}, Landroid/content/res/Resources;->getValue(ILandroid/util/TypedValue;Z)V

    return-void
.end method

.method public getValue(Ljava/lang/String;Landroid/util/TypedValue;Z)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3}, Landroid/content/res/Resources;->getValue(Ljava/lang/String;Landroid/util/TypedValue;Z)V

    return-void
.end method

.method public openRawResource(ILandroid/util/TypedValue;)Ljava/io/InputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/content/res/Resources$NotFoundException;
        }
    .end annotation

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/ui/theme/b;->a(ILandroid/util/TypedValue;)Ljava/io/InputStream;

    move-result-object p1

    return-object p1
.end method
